package com.zs.java.blockingqueue;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * 由链表结构组成的有界阻塞队列
 *
 * @author madison
 * @description
 * @date 2021/6/1 22:39
 */
public class LinkedBlockingQueueTest {

    public static void main(String[] args) throws InterruptedException {
        LinkedBlockingQueue<Integer> queue = new LinkedBlockingQueue(2);
        queue.put(3);
        queue.add(5);
        queue.offer(6);
        System.out.println(queue);
    }
}
